package com.jappsoftwares.splashscreen;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

public class SplashScreen extends Activity{

	private static final int DELAY = 5000;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {	
		super.onCreate(savedInstanceState);
		setContentView(R.layout.splash_screen);
		initSplashScreen();
	}

	public void initSplashScreen(){	
		new Handler().postDelayed(new Runnable() {			
			@Override
			public void run() {
				startActivity(new Intent(SplashScreen.this, PosSplashScreen.class));
				finish();
			}
		}, DELAY);
	}
	
}
